package com.ocn.li.scmdy.modules.app.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName BaseEntitty
 * @Description TODO
 * @Author Li9527
 * @Date 2020/9/18 13:38
 * @Version 1.0
 */
@Data
public class BaseEntity {
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "增加人员id")
    private String createUserId;

    @ApiModelProperty(value = "修改人员id")
    private String updateUserId;

    @ApiModelProperty(value = "逻辑删除的标志：0.正常；1.逻辑删除")
    private Integer delFlag;

    @TableField(exist = false)
    @ApiModelProperty(value = "系统编码：0.正常；1.逻辑删除")
    private String code;

    @TableField(exist = false)
    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "排序号")
    private Integer orderNumber;

    @ApiModelProperty(value = "保存对应数据区域编码")
    private String dataAreaCode;

}
